package com.caiyigo.baihua.dao;

import java.util.List;

import com.caiyigo.baihua.dto.RoleDto;
import com.caiyigo.baihua.model.SystemRole;

public interface SystemRoleMapper {

	int deleteByPrimaryKey(Integer id);

	int deleteByPid(Integer id);

	int insert(SystemRole record);

	int insertSelective(SystemRole record);

	SystemRole selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(SystemRole record);

	int updateByPrimaryKey(SystemRole record);

	List<RoleDto> list();

	List<String> getRolesName(String name);

	List<SystemRole> getRole(int id);

	List<SystemRole> selectWherePidIsNull();

	List<SystemRole> selectByPid(int id);
}